﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PagedList<CourseSystem.Core.Entities.CourseNoticeInfo>>" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc" %>
<table width="50%" height="2" border="0" align="center" cellpadding="0" cellspacing="0"
    bordercolor="#FFFFFF">
    <tr>
        <td bgcolor="#FFFFFF">
        </td>
    </tr>
</table>
<table width="944" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
    <tr>
        <td width="72" height="25" bgcolor="#D1E5F0">
            <div align="center" class="style13">
                序号</div>
        </td>
        <td width="737" bgcolor="#D1E5F0">
            <div align="center">
                <span class="style5">通知内容</span></div>
        </td>
        <td width="135" bgcolor="#D1E5F0">
            <div align="center">
                <span class="style13">通知日期</span></div>
        </td>
    </tr>
   <% int i = 1;

       foreach (var item in Model)
       {
           %>
    <tr class="style1">
        <td height="25">
            <div align="center">
                  <%=i++ %></div>
        </td>
        <td>
            <div align="left">
                <%=item.NoticeContent %>
            </div>
        </td>
        <td>
            <div align="center">
               <%=item.NoticeTime.ToString("yyyy-MM-dd") %></div>
        </td>
    </tr>
      <%} %>
</table><table width="98%" height="7" border="0" align="center" cellpadding="0" cellspacing="0"
    bordercolor="#FFFFFF">
    <tr>
        <td class="gray12">
            &nbsp;
        </td>
        <td align="right" class="gray12">
            <%=Html.AjaxPager(Model, new PagerOptions() { ContainerTagName = "span", CssClass = "mvcPager", PageIndexParameterName = "pid", ShowMorePagerItems = false, AlwaysShowFirstLastPageNumber = true, }, new AjaxOptions() { UpdateTargetId = "listDiv" })%>
            共<%=Model.TotalItemCount %>条记录，页<%=Model.CurrentPageIndex %>/<%=Model.TotalPageCount %>
        </td>
    </tr>
</table>
